<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: customers.php 11 2013-09-21 11:43:11Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 11 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-21 11:43:11 +0000 (Sat, 21 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

$customers = $db->db_query("SELECT customers_id FROM ".TABLE_CUSTOMERS, true);
$customers_gast = $db->db_query("SELECT customers_id FROM ".TABLE_CUSTOMERS. " WHERE customers_status='1'", true);
$customers_neukunde = $db->db_query("SELECT customers_id FROM ".TABLE_CUSTOMERS. " WHERE customers_status='2'", true);
$customers_haendler = $db->db_query("SELECT customers_id FROM ".TABLE_CUSTOMERS. " WHERE customers_status='3'", true);
$newsletter = $db->db_query("SELECT mail_id FROM ".TABLE_NEWSLETTER_RECIPIENTS. " WHERE mail_status='1'", true);
?>

<table width="100%" class="dataTable">
	<tr>
		<td><?php echo TEXT_WIDGET_CUSTOMERS_TOTAL ?></td>
		<td  align="center"> <?php echo $customers->_numOfRows; ?></td>
	</tr>
	<tr>
		<td><?php echo TEXT_WIDGET_CUSTOMERS_GUEST ?></td>
		<td  align="center"> <?php echo $customers_gast->_numOfRows; ?></td>
	</tr>
	<tr>
		<td><?php echo TEXT_WIDGET_CUSTOMERS_NEW ?></td>
		<td  align="center"> <?php echo $customers_neukunde->_numOfRows; ?></td>
	</tr>
	<tr>
		<td><?php echo TEXT_WIDGET_CUSTOMERS_MERCHANT ?></td>
		<td align="center"> <?php echo $customers_haendler->_numOfRows; ?></td>
	</tr>
	<tr>
		<td><?php echo TEXT_WIDGET_CUSTOMERS_NEWSLETTER ?></td>
		<td align="center"><?php echo $newsletter->_numOfRows; ?></td>
	</tr>
</table>